<?php
	include_once '../../recursos/librerias/protected.php';
	error_reporting(0);
?>
<!DOCTYPE html>
<head>
<link href="../../recursos/librerias/tool/estilos/ceGrid.css" rel="stylesheet" type="text/css">
<link href="../../estilos/main.css" rel="stylesheet" type="text/css">
<meta charset="UTF-8">
</head>

<button class ="btn" id= "atras" type="button" onclick="javascript: location.href='../../menu.php'">Regresar</button>


<body>
<div id="content">
<?php

require '../../recursos/librerias/conexion.php';

$dg = new ceDataGrid($dbase,'../../recursos/librerias/tool/img/'); //para las imagenes

$dg->setQuery("sc04IDAR,sc04NOAR,sc04DEAR","sc04area");

$dg->allowFilters();

$dg->showCreateButton("href='agregar.php'", ceDataGrid::TYPE_ONCLICK, 'Agregar');
$dg->setResultsPerPage(10);

$dg->setColumnHeader('sc04IDAR', 'Identificador Area');
$dg->setColumnHeader('sc04NOAR', 'Nombre Area');
$dg->setColumnHeader('sc04DEAR', 'Descripción Area');

$dg->addStandardControl(ceDataGrid::STDCTRL_EDIT, "href='editar.php?id=%sc04IDAR%'");
$dg->addStandardControl(ceDataGrid::STDCTRL_DELETE, "href='eliminar.php?id=%sc04IDAR%'");

$dg->showReset("Refrescar");
$dg->printTable();
?>
</div>
</body>
</html>